/*
 * Copyright (C) 2015  Nicola Spanti (RyDroid) <dev@nicola-spanti.info>
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <https://www.gnu.org/licenses/>.
 */


#ifndef PLANET_WARS_2D_RT_SDL2_DRAW_VECTOR_GAME_H
#define PLANET_WARS_2D_RT_SDL2_DRAW_VECTOR_GAME_H


#include <SDL2/SDL_render.h>
#include "PlanetWars2dRT-core/specific/model/game.h"
#include <stdio.h>


EXTERN_C_BEGIN


bool
SDL_draw_vector_planet(SDL_Renderer*   renderer,
		       const planet_t* a_planet,
		       const game_t*   a_game,
		       FILE*           error_stream);

bool
SDL_draw_vector_planets_of_game(SDL_Renderer* renderer,
				const game_t* a_game,
				FILE*         error_stream,
				bool          stop_on_error);

bool
SDL_draw_vector_ship(SDL_Renderer* renderer,
		     const ship_t* a_ship,
		     const game_t* a_game,
		     FILE*         error_stream);

bool
SDL_draw_vector_ships_of_game(SDL_Renderer* renderer,
			      const game_t* a_game,
			      FILE*         error_stream,
			      bool          stop_on_error);

bool
SDL_draw_vector_game(SDL_Renderer* renderer,
		     const game_t* a_game,
		     FILE*         error_stream,
		     bool          stop_on_error);

bool
SDL_draw_vector_game_end_message(SDL_Renderer* renderer,
				 const game_t* a_game,
				 FILE*         error_stream);

bool
SDL_draw_vector_game_end(SDL_Renderer* renderer,
			 const game_t* a_game,
			 FILE*         error_stream);


EXTERN_C_END


#endif
